{{if $smarty.request.iframe!='true'}}

{{include file="include/top.html"}}
<style>
.menu-min.sidebar+.body_right{top:40px;left:43px;}
.body_right{top:40px;left:180px;}
.body_right .bottom_button{/*当body_left存在时,采用padding-left:200px;方式,否则弹窗采用center方式*/
	padding-left:217px !important;
	text-align: left;
}
</style>

<script>
$(function(){
	$('.sidebar .nav-list ul.submenu li.active').parents('.submenu').parent('li').addClass('open active');
});
</script>
<a class="menu-toggler" id="menu-toggler" href="javascript:">
	<span class="menu-text"></span>
</a>
<div class="sidebar" id="sidebar">
	<ul class="nav nav-list">
		{{if $menu}}
		{{foreach from=$menu item=val}}
		<li  class="{{if $val.current}}active{{/if}}">
			<!-- {{* 一级菜单 S *}} -->
			<a href="{{if substr($val.params.link,0,7)=='http://'}}{{$val.params.link}}{{else}}{{$val.params.link|URL|default:'javascript:'}}{{/if}}" {{if $val._child}}class="dropdown-toggle"{{/if}} {{if $val.params.target!=''}}target="{{$val.params.target}}"{{/if}}>
				<i class="{{$val.image|default:'icon-forward'}}"></i>
				<span class="menu-text"> {{$val.title}} </span>
				{{if $val._child}}<b class="arrow icon-angle-down"></b>{{/if}}
			</a>
			<!-- {{* 一级菜单 E *}} -->
			{{if $val._child}}
			<ul class="submenu">
				{{foreach from=$val._child item=v}}
					<li class="{{if $v.current}}active{{/if}}">
						<!-- {{* 二级菜单 S *}} -->
						<a href="{{if substr($v.params.link,0,7)=='http://'}}{{$v.params.link}}{{else}}{{$v.params.link|URL|default:'javascript:'}}{{/if}}" class="dropdown-toggle" {{if $v.params.target!=''}}target="{{$v.params.target}}"{{/if}}>
							<i class="{{$v.image|default:'icon-double-angle-right'}}"></i>
							{{$v.title}}
							{{if $v._child}}<b class="arrow icon-angle-down"></b>{{/if}}
						</a>
						<!-- {{* 二级菜单 E *}} -->
						{{if $v._child}}
						<ul class="submenu" style="display:none;">
							{{foreach from=$v._child item=vv}}
							<li {{if $vv.current}}class="active"{{/if}}>
								<!-- {{* 三级菜单 S *}} -->
								<a href="{{if substr($vv.params.link,0,7)=='http://'}}{{$vv.params.link}}{{else}}{{$vv.params.link|URL|default:'javascript:'}}{{/if}}" class="dropdown-toggle" {{if $vv.params.target!=''}}target="{{$vv.params.target}}"{{/if}}>
									<i class="{{$vv.image|default:'icon-double-angle-right'}}"></i>
									{{$vv.title}}
									{{if $vv._child}}<b class="arrow icon-angle-down"></b>{{/if}}
								</a>
								<!-- {{* 三级菜单 E *}} -->
								{{if $vv._child}}
									<ul class="submenu" style="display:none;">
										{{foreach from=$vv._child item=vvv}}
										<li>
											<!-- {{* 四级菜单 S *}} -->
											<a href="{{if substr($vvv.params.link,0,7)=='http://'}}{{$vvv.params.link}}{{else}}{{$vvv.params.link|URL|default:'javascript:'}}{{/if}}" {{if $vvv.params.target!=''}}target="{{$vvv.params.target}}"{{/if}}>
												<i class="{{$vvv.image|default:'icon-leaf'}}"></i>
												{{$vvv.title}}
											</a>
											<!-- {{* 四级菜单 E *}} -->
										</li>
										{{/foreach}}
									</ul>
								{{/if}}
							</li>
							{{/foreach}}
						</ul>
						{{/if}}
					</li>
				{{/foreach}}
			</ul>
			{{/if}}
		</li>
		{{/foreach}}
		{{/if}}
	</ul>
	<!-- /.nav-list -->
	<div class="sidebar-collapse" id="sidebar-collapse">
		<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
	</div>

</div>
{{else}}
<style>
.body_right{top:0 !important;}
</style>
{{/if}}